//=============================================================================
// ThermoBlasterAttachment.
//=============================================================================
class ThermoBlasterAttachment extends xWeaponAttachment;

var ThermoMuzFlashProj3rd MuzFlash3rd;

simulated event ThirdPersonEffects()
{
    local Rotator R;

    if ( Level.NetMode != NM_DedicatedServer && FlashCount > 0 )
    {
        if (MuzFlash3rd == None)
        {
            MuzFlash3rd = Spawn(class'ThermoMuzFlashProj3rd');
            MuzFlash3rd.bHidden = false;
            AttachToBone(MuzFlash3rd, 'tip');
        }
        if (MuzFlash3rd != None)
        {
            R.Roll = Rand(65536);
            SetBoneRotation('Bone_Flash', R, 0, 1.0);
            MuzFlash3rd.mStartParticles++;
        }
    }

    Super.ThirdPersonEffects();
}

defaultproperties
{
     bRapidFire=True
     Mesh=SkeletalMesh'Weapons.ShockRifle_3rd'
     RelativeLocation=(Z=6.000000)
     DrawScale=0.200000
     Skins(0)=Texture'TFMedia.ThermoBlaster.BlasterTex0'
}
